import request from '@/utils/request'
// 获取所有权限点
export function getPermssion(params) {
  return request.get('/permissions', { params })
}
// 获取权限点总数
export function getPermssionLength() {
  return request.get('/permissions/count')
}
// 添加权限
export function addPermssion(data) {
  return request.post('/permissions', data)
}
// 删除权限点
export function deletePermssion(id) {
  return request.delete('/permissions/' + id)
}
// 编辑权限点
export function updatePerssion(data) {
  return request.put('/permissions/' + data.id, data)
}
// 根据id显示当前的权限信息
export function getOncePermssion(id) {
  return request.get('/permissions/' + id)
}
